package com.test.spring.annotation.controller;

import com.test.spring.annotation.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/27 9:42
 */
@Controller
public class UserController {
    @Autowired
    private UserService service;

    public void execute() {
        System.out.println("UserController execute()...");
        service.add();
    }
}
